<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03-计算属性和侦听器</title>
</head>
<script src="./vue1111.js"></script>
<body>
    <div id="app">
          <p>正常：{{ message }}</p>
          <button @click='reverseMessage'>点击翻转</button>
          <!-- <p>翻转: {{ reverseMessage }}</p> -->
    </div>

    
</body>
<script>
    var aaa = new Vue({
        el:'#app',
        data:{
            message:'hello world!'
        },
        methods:{
            reverseMessage(){
                this.message=  this.message.split('').reverse().join('')
            }
        }
    });


</script>
</html>